import React, {useEffect} from 'react';

const FunUseEffectOne = () => {
    useEffect(() => {
        console.log(" useEffectOne ==> 重新挂载了")
        return () => {
            console.log(" useEffectOne ==> 卸载了")
        }
    }, [])
    return (
        <div>
            <h4>子组件 FunUseEffectOne</h4>
        </div>
    );
};

export default FunUseEffectOne;